package com.yang.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yang.mall.dto.BannerDTO;
import com.yang.mall.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 广告表 Mapper 接口
 * </p>
 *
 * @author kadorlin
 * @since 2022-10-21
 */
public interface BannerMapper extends BaseMapper<Banner> {


    /**
     * getListByBannerDTO
     * @Date 2021/11/22
     * @Author Cyj
     * @param bannerDTO
     * @return java.util.List<run.olive.common.core.entity.live.entity.Banner>
     */
    List<Banner> getListByBannerDTO(@Param("bannerDTO") BannerDTO bannerDTO);

    /**
     * getPageByBannerDTO
     * @Date 2021/11/22
     * @Author Cyj
     * @param page
     * @param bannerDTO
     * @return com.baomidou.mybatisplus.core.metadata.IPage<run.olive.common.core.entity.live.entity.Banner>
     */
    IPage<Banner> getPageByBannerDTO(@Param("page") Page page, @Param("bannerDTO")BannerDTO bannerDTO);
}
